package com.joplus.housekeeper.bean;

import android.support.annotation.NonNull;
import android.util.Log;

import com.hyphenate.chat.EMImageMessageBody;
import com.hyphenate.chat.EMMessage;
import com.hyphenate.chat.EMTextMessageBody;
import com.hyphenate.chat.EMVoiceMessageBody;
import com.joplus.housekeeper.core.Config;


import java.io.File;
import java.util.List;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * Created by zisheng on 2018/6/25.
 */

public class RecordListBean {


    /**
     * code : 2000
     * data : {"messageRecordList":[{"accountId":"acc14883811083461oTw","clientType":2,"content":"VTEwMDAy","createDatetime":1529912852470,"messageDatetime":1529909107276,"messageFrom":"customer-service3","messageId":"f183807b688d42e7a6c61c8c9c22a7df","messageTo":"acc14883811083461otw","sid":"e7d97855ab6f4d8cbe15a66e20acdfa6","state":"read","type":8},{"accountId":"acc14883811083461oTw","clientType":0,"content":"5pyJ5Lq65ZCX77yf","createDatetime":1529912852470,"decryptContent":"有人吗？","messageDatetime":1529905929282,"messageFrom":"acc14883811083461otw","messageId":"cba89c4d5c8c417e8c21df5d38ea3950","messageTo":"customer-service3","sid":"8bc2541fa17b4c49aedfac5ce9bd7693","type":1},{"accountId":"acc14883811083461oTw","clientType":0,"content":"MTIz","createDatetime":1529912852470,"decryptContent":"123","messageDatetime":1529905905987,"messageFrom":"acc14883811083461otw","messageId":"c8f7849a3c3a43b6990a5dc0868f5e0f","messageTo":"customer-service3","sid":"81659c3d1f514faaa286df1bca98ee21","type":1},{"accountId":"acc14883811083461oTw","clientType":0,"content":"5aec5aWz5aOr77yM5oSf6LCi5oKo55qE6Z2S552Q44CC6K+36Zeu5pyJ5LuA5LmI\r\n5Y+v5Lul5Li65oKo5pWI5Yqz55qE77yf","createDatetime":1529769601000,"decryptContent":"姜女士，感谢您的青睐。请问有什么可以为您效劳的？","messageDatetime":1529636978688,"messageFrom":"easemob","messageId":"15296369395380006","messageTo":"13816469517","sid":"5d9f0de1a0a94bdb9e5988659ffc83f8","state":"unread","type":1}],"startRow":4}
     * message : 获取成功
     */

    private String code;
    private DataBean data;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean {
        /**
         * messageRecordList : [{"accountId":"acc14883811083461oTw","clientType":2,"content":"VTEwMDAy","createDatetime":1529912852470,"messageDatetime":1529909107276,"messageFrom":"customer-service3","messageId":"f183807b688d42e7a6c61c8c9c22a7df","messageTo":"acc14883811083461otw","sid":"e7d97855ab6f4d8cbe15a66e20acdfa6","state":"read","type":8},{"accountId":"acc14883811083461oTw","clientType":0,"content":"5pyJ5Lq65ZCX77yf","createDatetime":1529912852470,"decryptContent":"有人吗？","messageDatetime":1529905929282,"messageFrom":"acc14883811083461otw","messageId":"cba89c4d5c8c417e8c21df5d38ea3950","messageTo":"customer-service3","sid":"8bc2541fa17b4c49aedfac5ce9bd7693","type":1},{"accountId":"acc14883811083461oTw","clientType":0,"content":"MTIz","createDatetime":1529912852470,"decryptContent":"123","messageDatetime":1529905905987,"messageFrom":"acc14883811083461otw","messageId":"c8f7849a3c3a43b6990a5dc0868f5e0f","messageTo":"customer-service3","sid":"81659c3d1f514faaa286df1bca98ee21","type":1},{"accountId":"acc14883811083461oTw","clientType":0,"content":"5aec5aWz5aOr77yM5oSf6LCi5oKo55qE6Z2S552Q44CC6K+36Zeu5pyJ5LuA5LmI\r\n5Y+v5Lul5Li65oKo5pWI5Yqz55qE77yf","createDatetime":1529769601000,"decryptContent":"姜女士，感谢您的青睐。请问有什么可以为您效劳的？","messageDatetime":1529636978688,"messageFrom":"easemob","messageId":"15296369395380006","messageTo":"13816469517","sid":"5d9f0de1a0a94bdb9e5988659ffc83f8","state":"unread","type":1}]
         * startRow : 4
         */

        private int startRow;
        private List<MessageRecordListBean> messageRecordList;

        public int getStartRow() {
            return startRow;
        }

        public void setStartRow(int startRow) {
            this.startRow = startRow;
        }

        public List<MessageRecordListBean> getMessageRecordList() {
            return messageRecordList;
        }

        public void setMessageRecordList(List<MessageRecordListBean> messageRecordList) {
            this.messageRecordList = messageRecordList;
        }



    }


}
